import React from 'react';
import { Form } from 'antd';
import { AxCreateForm } from '@/components/AxForm/AxCreateForm';
import { AxLabel } from '@/components/AxForm/AxFormItem';

const Qualification: React.FC<any> = props => {
    const { form, ...rest } = props;

    return (
        <>
            <AxCreateForm
                form={form}
                title='商家资质'
                footer={undefined}
                {...rest}
                items={[
                    <AxLabel
                        form={form}
                        label="资质名称"
                        field="campusId"
                        value="易燃物品销售证书"
                    />,
                    <AxLabel
                        form={form}
                        label="资质类型"
                        field="campusId1"
                        value="易燃物品"
                    />,
                    <AxLabel
                        form={form}
                        label="图片"
                        field="campusId2"
                    >
                        <img src='/img/purchase.jpg' width={200} />
                    </AxLabel>,
                    <AxLabel
                        form={form}
                        label="过期时间"
                        field="campusId3"
                        value="2022-10-11"
                    />,
                ]}
            />
        </>
    );
};

export default Form.create<any>()(Qualification);
